import pytest
from datetime import datetime


@pytest.fixture(autouse=True)
def test_f():
    s = (datetime.now(),'用例开始执行')
    print(s)
    assert s != None
    yield 123
    print(datetime.now(), '用例结束执行')
@pytest.mark.skip(reason="不执行")
def test_t():
    print("用例二次执行")
    print("用例二次结束")

def test_h(test_f):
    print("收到fixure传递的数据：",test_f)
# if __name__ == '__main__':
#     pytest.main(["-m","a213a"])